package com.easyctba.core.domain.bo;

import com.easyctba.common.core.validate.AddGroup;
import com.easyctba.common.core.validate.EditGroup;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 新增编码分类对象
 */
@Data
public class FiasClassAddBo implements Serializable {
    @Serial
    private static final long serialVersionUID = 42L;

    /**
     * 分类名
     */
    @NotBlank(message = "编码名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * FIAS 分析 id
     */
    @NotNull(message = "FIAS大类id不能为空", groups = { AddGroup.class, EditGroup.class})
    private Long id;


    /**
     * 分类编号
     */
    @NotBlank(message = "分类编号不能为空", groups = {  AddGroup.class, EditGroup.class })
    private String classNum;
}
